package com.service.thirddatacenter.hpool.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.thirddatacenter.hpool.model.entity.AccountMinerEntity;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 矿机
 *
 * @date 2021-06-08 15:41:03
 */
public interface AccountMinerService extends IService<AccountMinerEntity> {



    void syncMinerFromPlatform();

    AccountMinerEntity getByPlatformMinerId(String platformMinerId);

    List<AccountMinerEntity> listByAccountIds(List<Integer> accountIds);
    /**
     * @Description: 统计商家所有某类型矿机的在线算力
     * @Author: ty
     * @Date: 2021/6/22 15:38
     * @param: [accountIds, minerType]
     * @return: java.math.BigDecimal
     **/
    BigDecimal totalOnline(List<Integer> accountIds,  String minerType, Integer minerStatus);
}
